all: worker grid_server

.PHONY: clean test worker grid_server node_environment_test_app sender exec_plan

worker: exec_plan

exec_plan grid_server node_environment_test_app sender:
	make -C $@

netio/libnetio.a node_environment/libnode_environment.a proto/libproto.a utils/utils.a:
	make -C $(dir $@)

test:
	make -C ./../single_worker_version/xilexio exec_plan
	cp ./../single_worker_version/xilexio/exec_plan ./run/exec_plan
	make -C run test

clean:
	make -C exec_plan clean
	make -C node_environment clean
	make -C node_environment_test_app clean
	make -C netio clean
	make -C utils clean
	make -C sender clean
	make -C grid_server clean
	make -C run clean
	make -C proto clean
	make -C ./../single_worker_version/xilexio clean
